package com.luoqiu.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 洛秋y
 * @date 2020/11/24 9:30
 */
@RestController
@RefreshScope //支持nocas的动态刷新
public class ConfigController {

    @Value("${config.info}")
    private String info;

    @GetMapping(value = "/cof/info")
    public String info () {
        return info;
    }
}
